package com.iot.enums;

public enum RejectApplyContentEnum {

    CHINESE(0,"$X拒绝了你的申请关注"),
    TRADITIONAL_CHINESE(1,"$X拒絕了你的申請關注"),
    ENGLISH(2,"$X rejected your application for attention"),
    FRENCH(3,"$X a rejeté votre demande de suivi"),
    GERMAN(4,"$X hat Ihre Bewerbung abgelehnt, um folgen zu können"),
    ITALIAN(5,"$X ha respinto la tua domanda di attenzione"),
    JAPANESE(6,"$Xはあなたの申し出を拒否しました"),
    POLISH(7,"$X odrzucił twoją wniosek"),
    PORTUGUESE(8,"$X rejeitou seu pedido de seguimento"),
    RUSSIAN(9,"$X отклонил вашу заявку на внимание"),
    SPANISH(10,"$X rechazó su solicitud para seguir"),
    ARABIC(11,"رفض $X طلبك للمتابعة"),
    GREEK(12,"$X απορρίπτει την προσοχή της αίτησής σας"),
    KOREAN(13,"$X는 당신의 신청서를 거부했습니다."),
    THAI(14,"$X ปฏิเสธใบสมัครของคุณเพื่อติดตาม"),
    PERSIAN(15,"$X برنامه شما را رد کرد"),
    TURKISH(16,"$X başvurunuzu reddetti."),
    VIETNAMESE(17,"$X từ chối ứng dụng của bạn theo dõi"),
    DUTCH(18,"$X verwerpt uw aanvraag"),
    DANISH(19,"$X afviste din ansøgning om opmærksomhed"),
    CZECH(20,"$X odmítl vaši žádost o pozornost"),
    SWEDISH(21,"$X avvisar din ansökan om uppmärksamhet"),
    FINNISH(22,"$X hylkäsi hakemuksesi"),
    BULGARIAN_LANGUAGE(23,"$X отхвърли вашето приложение за внимание"),
    UKRAINIAN(24,"$X відхиляє вашу заявку"),
    HEBREW(25,"$X דחה את הבקשה שלך");

    private Integer code;

    private String content;


    RejectApplyContentEnum(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public Integer getCode() {
        return code;
    }

    public String getContent() {
        return content;
    }

    public static String getByCode(Integer code){
        if (null == code) {
            return CHINESE.getContent();
        }

        for (ApplyContentEnum value : ApplyContentEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getContent();
            }
        }
        return CHINESE.getContent();
    }
}
